xen.git
20 years agoWhitespace.
cl349@firebug.cl.cam.ac.uk [Mon, 27 Mar 2006 10:16:36 +0000 (11:16 +0100)]
Whitespace.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoFix 64-bit HVM guest debug via gdbserver:
kaf24@firebug.cl.cam.ac.uk [Sun, 26 Mar 2006 10:50:39 +0000 (11:50 +0100)]
Fix 64-bit HVM guest debug via gdbserver:
 1. gdb_regs for 64bit, and macros to transfer regisers between ptrace
    registers to gdb registers
 2. xc_ptrace code building for 64bit
 3. Implementation of new map_domain_va for 64bit
 4. gdbserver-xen build configuration fixes for 64bit

From: Nitin Kamble
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoAllow 64-bit Xen to run 64-bit hvm SMP guests.
kaf24@firebug.cl.cam.ac.uk [Sun, 26 Mar 2006 10:45:35 +0000 (11:45 +0100)]
Allow 64-bit Xen to run 64-bit hvm SMP guests.

Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
20 years agoDon't reclaim vcpus that are not put into use yet when destroying HVM
kaf24@firebug.cl.cam.ac.uk [Sun, 26 Mar 2006 10:43:53 +0000 (11:43 +0100)]
Don't reclaim vcpus that are not put into use yet when destroying HVM
domain. Otherwise, when running a debug=y xen, we will get a assertion
failure in vmx_request_clear_vmcs(), since some vcpus may be not
initialized for HVM use yet.

Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
20 years agoFix build error with debug=y inxen/ia64 by moving
kaf24@firebug.cl.cam.ac.uk [Sun, 26 Mar 2006 10:42:17 +0000 (11:42 +0100)]
Fix build error with debug=y inxen/ia64 by moving
MAX_ORDER definition has moved into a header file.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
20 years agoThe attached patch to the qemu emulation of the pcnet hardware fixes
kaf24@firebug.cl.cam.ac.uk [Sun, 26 Mar 2006 10:39:04 +0000 (11:39 +0100)]
The attached patch to the qemu emulation of the pcnet hardware fixes
several problems.  It will now only read and write a transmit or receive
descriptor once.  It will correctly handle transmitting frames with more
than two fragments.  It will discard oversize frames instead of
corrupting memory.  I have tested all the changes I have made and even
seen an improvement in receive performance from 1.7MB/s to 3.3MB/s.
Your mileage will vary.

The code could be simplified if multi-fragment frames were deleted.  It
appears that both Linux and Windows XP don't use fragmented frames.

The mac crc computation code was deleted, since it has never been used.
The code was checking the wrong bit in the control register.

I tested type 3 descriptors by modifying the linux pcnet32 driver, but
did not see any difference in performance over type 2 currently used.

I have not made any change to type 0 (16-bit) transmit/receive
descriptors as I have no way to test the changes.

Please test this as soon as possible, as I will be on vacation next week
and in a class the following week.  I will check email from time to
time, but my ability to make changes to code will be greatly dimished.

One other thing I noticed in my testing, is that if I tell a linux domU
to reboot, it will reboot but not have any pcnet32 device after
rebooting.  By doing a shutdown, xm destroy and xm create, I was able to
get around that problem.

Signed-off-by: Don Fry <brazilnut@us.ibm.com>
20 years agoAdd format printf attribute to panic() prototype and fix the error
kaf24@firebug.cl.cam.ac.uk [Sun, 26 Mar 2006 10:35:11 +0000 (11:35 +0100)]
Add format printf attribute to panic() prototype and fix the error
this catches.

Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoAdded tag 3.0.2-rc for changeset af0573e9e5258db0a9d28aa954dd302ddd2c2d23
kaf24@firebug.cl.cam.ac.uk [Fri, 24 Mar 2006 16:48:03 +0000 (17:48 +0100)]
Added tag 3.0.2-rc for changeset af0573e9e5258db0a9d28aa954dd302ddd2c2d23

20 years agoSwitch the default build to make the -xen kernel, not the -xen0 and -xenU
emellor@leeni.uk.xensource.com [Fri, 24 Mar 2006 13:36:14 +0000 (14:36 +0100)]
Switch the default build to make the -xen kernel, not the -xen0 and -xenU
kernels.  Distros will be using -xen exclusively, so this change means that
developers and users of unstable will be (by default) using the same
configuration as the distros.

This can be overridden by setting KERNELS="linux-2.6-xen0 linux-2.6-xenU" on the
command line.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoFix bug 515 by adding a global lock around the hotplug scripts in the non-udev hotplu...
harry@localhost.localdomain [Fri, 24 Mar 2006 13:31:20 +0000 (14:31 +0100)]
Fix bug 515 by adding a global lock around the hotplug scripts in the non-udev hotplug case only.

There are two possible root causes for 515, both of which are only problems in the non-udev hotplug case because udev uses udevsend which already implements the required serialisation.

1) Script concurrency.
2) Kernel reordering hotplug events.

This changeset fixes (1) but not (2).  Since (1) is the problem that seems to be happening this is probably OK.

A fix for (2) for the hotplug case might be to add extra serialisation using state changes in the store but this would impact all the drivers and the code and extra complexity would be redundant once everyone had moved to udev.  This doesn't seem worthwhile unless we actually start to see (2) happening.

20 years ago1) Introduce new exception type XendInvalidDomain that maps to the high level
anthony@rhesis.austin.ibm.com [Fri, 24 Mar 2006 13:31:12 +0000 (14:31 +0100)]
1) Introduce new exception type XendInvalidDomain that maps to the high level
   XEND_INVALID_DOMAIN faultType.
2) Fix exception logic in XMLRPCServer
3) Fix TCP server
4) Remove catching of ProtocolError in main.py.  ProtocolErrors only occur
   when there is an exception in the exception handling code which shouldn't
   ever happen.  I've reproduced the error cases described by Ewan with
   xend_domain_setTargetMemory and once I fixed the exception logic, I get a
   normal faultType of 1 as would be expected.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
20 years agoCreate /var/xen/dump/ during tools installation, or core files
kaf24@firebug.cl.cam.ac.uk [Fri, 24 Mar 2006 11:28:58 +0000 (12:28 +0100)]
Create /var/xen/dump/ during tools installation, or core files
are not written even if we set (enable-dump yes) in xend-config.sxp.

Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
20 years agoDetect spurious faults taken in the hypervisor that are
kaf24@firebug.cl.cam.ac.uk [Fri, 24 Mar 2006 11:14:58 +0000 (12:14 +0100)]
Detect spurious faults taken in the hypervisor that are
due to writable pagetable logic.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoThis patch is mainly a cleanup of vmx related xentrace code. One minor
kaf24@firebug.cl.cam.ac.uk [Fri, 24 Mar 2006 09:59:31 +0000 (10:59 +0100)]
This patch is mainly a cleanup of vmx related xentrace code. One minor
xentrace bug is fixed.

Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
Signed-off-by: Yunfeng Zhao <yunfeng.zhao@intel.com>
20 years agoUpdate gdb documentation
kaf24@firebug.cl.cam.ac.uk [Fri, 24 Mar 2006 09:57:52 +0000 (10:57 +0100)]
Update gdb documentation

* Kernel isn't 2.6.12 anymore
* ARCH=xen isn't needed for make anymore

Signed-Off-By: Horms <horms@verge.net.au>
20 years agoThe patch removes old Xenbus files, fixes 0 length mmu_updates table bug
kaf24@firebug.cl.cam.ac.uk [Fri, 24 Mar 2006 09:52:10 +0000 (10:52 +0100)]
The patch removes old Xenbus files, fixes 0 length mmu_updates table bug
(bugfix by Melvin Anderson) and adds missing console.h header file
(again spotted by Melvin).

Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
20 years agoFix mini-os xenbus.
kaf24@firebug.cl.cam.ac.uk [Fri, 24 Mar 2006 09:47:48 +0000 (10:47 +0100)]
Fix mini-os xenbus.

From: Grzegorz Milos <gm281@cam.ac.uk>
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoRemove unnecessary zlib includes.
kaf24@firebug.cl.cam.ac.uk [Thu, 23 Mar 2006 17:57:21 +0000 (18:57 +0100)]
Remove unnecessary zlib includes.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
20 years agoon_selected_cpus() must not send IPIs with empty target masks.
kaf24@firebug.cl.cam.ac.uk [Thu, 23 Mar 2006 17:47:43 +0000 (18:47 +0100)]
on_selected_cpus() must not send IPIs with empty target masks.
This causes send accept errors on Pentium/P6 .

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoMerged.
emellor@leeni.uk.xensource.com [Thu, 23 Mar 2006 16:37:37 +0000 (17:37 +0100)]
Merged.

20 years agoRemove undefined XFAIL_TESTS variable.
emellor@leeni.uk.xensource.com [Thu, 23 Mar 2006 16:27:48 +0000 (17:27 +0100)]
Remove undefined XFAIL_TESTS variable.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoRemove undefined XFAIL_TESTS variable.
emellor@leeni.uk.xensource.com [Thu, 23 Mar 2006 16:25:55 +0000 (17:25 +0100)]
Remove undefined XFAIL_TESTS variable.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoRemove unused variable.
cl349@firebug.cl.cam.ac.uk [Thu, 23 Mar 2006 16:21:05 +0000 (16:21 +0000)]
Remove unused variable.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoReduce spin-waiting in Xen serial driver:
kaf24@firebug.cl.cam.ac.uk [Thu, 23 Mar 2006 16:17:08 +0000 (17:17 +0100)]
Reduce spin-waiting in Xen serial driver:
 1. Split the serial port lock into receiver and transmitter locks.
 2. In the ns16550 interrupt, only call the generic serial service
    routines if there is receive (or transmit) work to do.
 3. In the generic transmit ISR, avoid long spin-waits by *trying*
    to take the transmitter lock and, if that fails, check again
    whether the transmitter is empty. This will allow us to bail
    bail quickly if there is a long-term lock holder stuffing lots
    of bytes.

Also, gdbstub should be setting its serial handle in synchronous mode,
just for sanity.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoMerge hvm_store_cpu_guest_regs() and hvm_store_cpu_guest_ctrl_regs()
kaf24@firebug.cl.cam.ac.uk [Thu, 23 Mar 2006 14:53:52 +0000 (15:53 +0100)]
Merge hvm_store_cpu_guest_regs() and hvm_store_cpu_guest_ctrl_regs()
into a single function.

On VMX, make the function work even when the passed VCPU is not the
currently-executing VCPU.

This allows gdbserver-xen to get correct cpu register context for VMX guests.

Signed-off-by: Keir Fraser <keir@xensource.com>
Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
20 years agoRename generic_page_range as apply_to_page_range, export the symbol
kaf24@firebug.cl.cam.ac.uk [Thu, 23 Mar 2006 14:30:00 +0000 (15:30 +0100)]
Rename generic_page_range as apply_to_page_range, export the symbol
to GPL modules. Rename pte_page parameter to pmd_page (following the
Linux idiom). apply_to_pte_range() should take the pte spinlock.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoMerged.
emellor@leeni.uk.xensource.com [Thu, 23 Mar 2006 13:45:21 +0000 (14:45 +0100)]
Merged.

20 years agoFix 2 VMX time-related bugs:
kaf24@firebug.cl.cam.ac.uk [Thu, 23 Mar 2006 13:44:51 +0000 (14:44 +0100)]
Fix 2 VMX time-related bugs:
 1) bogomips=0 or a very huge number after booting ia32/ia32e vmx
 2) Repeated keys show in Xwindow terminal after one key is pressed

Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
20 years agoAdded copyright declaration for Christopher Clark, Andrew Tridgell.
emellor@leeni.uk.xensource.com [Thu, 23 Mar 2006 13:44:11 +0000 (14:44 +0100)]
Added copyright declaration for Christopher Clark, Andrew Tridgell.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoUse *args inside FAIL and SKIP so that it is possible to call these functions
emellor@leeni.uk.xensource.com [Thu, 23 Mar 2006 13:34:35 +0000 (14:34 +0100)]
Use *args inside FAIL and SKIP so that it is possible to call these functions
with multiple arguments, printf style.  This is already being done in some
cases (causing an exception of course).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoImport the current version of talloc from the Samba 3 source base. This gives
emellor@leeni.uk.xensource.com [Thu, 23 Mar 2006 13:32:15 +0000 (14:32 +0100)]
Import the current version of talloc from the Samba 3 source base.  This gives
us greater confidence that our talloc implementation is "known good".  Remove
the OOM handling from consider_message: talloc_set_fail_handler is no longer
supported.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoMerged.
emellor@leeni.uk.xensource.com [Thu, 23 Mar 2006 13:26:38 +0000 (14:26 +0100)]
Merged.

20 years agoMerged.
emellor@leeni.uk.xensource.com [Thu, 23 Mar 2006 11:59:50 +0000 (12:59 +0100)]
Merged.

20 years agoImprove error handling, in particular fixing the ProtocolError that is thrown
emellor@leeni.uk.xensource.com [Thu, 23 Mar 2006 11:59:43 +0000 (12:59 +0100)]
Improve error handling, in particular fixing the ProtocolError that is thrown
when a domain is specified by the user that does not exist.  Added a few
error codes -- many more to come, I expect.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoEnable Windows PAE guest on x86-64. Deals with two issues:
kaf24@firebug.cl.cam.ac.uk [Thu, 23 Mar 2006 11:51:10 +0000 (12:51 +0100)]
Enable Windows PAE guest on x86-64. Deals with two issues:
 1) To handle the situation when PE=1 and PG=0.
 2) Windows PAE guest seems to enable PAE first and then enable PG.

Signed-off-by: Xiaohui Xin <xiaohui.xin@intel.com>
20 years agoAdded exception handler for ProtocolError.
emellor@leeni.uk.xensource.com [Thu, 23 Mar 2006 10:58:19 +0000 (11:58 +0100)]
Added exception handler for ProtocolError.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoAdded example config entries for xend-tcp-xmlrpc-server and
emellor@leeni.uk.xensource.com [Thu, 23 Mar 2006 10:55:56 +0000 (11:55 +0100)]
Added example config entries for xend-tcp-xmlrpc-server and
xend-unix-xmlrpc-server.  Deprecate the SXP-based servers, and disable them
by default.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoUse the string Error: rather than Xend has generated an internal Fault:.
emellor@leeni.uk.xensource.com [Thu, 23 Mar 2006 10:42:19 +0000 (11:42 +0100)]
Use the string Error: rather than Xend has generated an internal Fault:.
xm-test looks for this.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoRemoved unused handler parameter from UnixXMLRPCServer interface -- just pass
emellor@leeni.uk.xensource.com [Thu, 23 Mar 2006 10:40:43 +0000 (11:40 +0100)]
Removed unused handler parameter from UnixXMLRPCServer interface -- just pass
UnixXMLRPCRequestHandler through to TCPXMLRPCServer.

Do not log requests -- this fills up xend-debug.log uselessly.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoFix call to send_sysrq.
emellor@leeni.uk.xensource.com [Thu, 23 Mar 2006 10:30:33 +0000 (11:30 +0100)]
Fix call to send_sysrq.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoUse XML-RPC as a transport for Xend instead of S-Expression/HTTP.
anthony@rhesis.austin.ibm.com [Thu, 23 Mar 2006 10:25:37 +0000 (11:25 +0100)]
Use XML-RPC as a transport for Xend instead of S-Expression/HTTP.

This changeset introduces a new XML-RPC service that runs in Xend and the
required changes to have xm use this new service by default.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
20 years agoFix a Linux bug in the driver core in regards to the bind sysfs driver
kaf24@firebug.cl.cam.ac.uk [Thu, 23 Mar 2006 09:58:39 +0000 (10:58 +0100)]
Fix a Linux bug in the driver core in regards to the bind sysfs driver
attribute. I've submitted this to lkml, but it should be included in
Xen now for people who will use the pciback late binding capability.

Signed-off-by: Ryan Wilson <hap9@epoch.ncsc.mil>
20 years agoSupport late binding of PCI devices to the PCI backend driver in
kaf24@firebug.cl.cam.ac.uk [Thu, 23 Mar 2006 09:57:48 +0000 (10:57 +0100)]
Support late binding of PCI devices to the PCI backend driver in
dom0. This allows you to bind devices to the backend driver *after*
dom0 has booted. You are no longer required to specify the devices to
hide on the kernel command-line. Using the bind/unbind driver
attributes (see /sys/bus/pci/drivers/pciback), you can specify which
devices that the PCI backend will seize. There are three new driver
attributes in that directory:

slots       - lists all of the PCI slots that
              the PCI backend will try to seize
new_slot    - write the name of a slot here
              (in 0000:00:00.0 format) to have the PCI
              Backend seize the device in this slot
remove_slot - write the name of a slot here to have
              the PCI Backend no longer try to seize a
              device in this slot

Note that writing to new_slot/remove_slot does not actually change
whether the PCI Backend is actually bound to the device in that slot or
not. Instead, it tells the PCI backend which slots it should be
interested in. The sysfs attributes "bind" and "unbind" (which are
common to all drivers, not just the PCI Backend) must be used to
actually add or remove a device from the PCI backend driver. Note that
the syntax for specifying a device to bind and unbind is very strict (do
not append a newline).

For Example:

# Add a new slot to the PCI Backend's list
echo -n 0000:01:04.d > /sys/bus/pci/drivers/pciback/new_slot
# Now that the backend is watching for the slot, bind to it
echo -n 0000:01:04.d > /sys/bus/pci/drivers/pciback/bind

# Unbind a PCI network card from its network driver
echo -n 0000:05:02.0 > /sys/bus/pci/drivers/3c905/unbind
# And now bind it to the PCI Backend
echo -n 0000:05:02.0 > /sys/bus/pci/drivers/pciback/new_slot
echo -n 0000:05:02.0 > /sys/bus/pci/drivers/pciback/bind

Unfortunately, Linux makes it possible to remove (unbind) a PCI device
from the PCI backend while that device is attached to a driver domain.
It is also possible to unload the PCI Backend module while a PCI
Frontend is attached. DON'T DO EITHER OF THESE ACTIONS. This patch will
output warnings if you do try and do these. Be aware that while access
to the configuration space of the device has been revoked, the driver
domain can still access the I/O resources of the device as they have not
been revoked (although I *hope* to explore adding support for this
soon). Before unloading the module or unbinding a device, shutdown your
driver domain.

These patches also convert a few function and variable declarations to
static (no sense in polluting the global namespace with local function
names) and rename a few structures in drivers/xen/pciback/pci_stub.c.

Signed-off-by: Ryan Wilson <hap9@epoch.ncsc.mil>
20 years agoThe PCI Frontend doesn't properly clean-up PCI buses and their devices
kaf24@firebug.cl.cam.ac.uk [Thu, 23 Mar 2006 09:53:55 +0000 (10:53 +0100)]
The PCI Frontend doesn't properly clean-up PCI buses and their devices
that are in-use if the PCI Backend goes away. This patch corrects that.

This patch also shortens the timeout in drivers/xen/pcifront/pci_op.c
(in an attempt to minimize the amount of time spent waiting with
interrupts disabled).

Signed-off-by: Ryan Wilson <hap9@epoch.ncsc.mil>
20 years agoSVM patch to fix guest time, including 64bit msr code - allowing 64bit
kaf24@firebug.cl.cam.ac.uk [Thu, 23 Mar 2006 09:50:34 +0000 (10:50 +0100)]
SVM patch to fix guest time, including 64bit msr code - allowing 64bit
linux guests to enable APIC (ie. apic=1 now works in guest config file).

Signed-off-by: Tom Woller <thomas.woller@amd.com>
20 years agoFix build with crash_debug=y.
kaf24@firebug.cl.cam.ac.uk [Thu, 23 Mar 2006 09:47:44 +0000 (10:47 +0100)]
Fix build with crash_debug=y.

Signed-off-by: Muli Ben-Yehuda <mulix@mulix.org>
20 years agoUpdate and extend netif transmit/receive flag names.
kaf24@firebug.cl.cam.ac.uk [Thu, 23 Mar 2006 09:46:28 +0000 (10:46 +0100)]
Update and extend netif transmit/receive flag names.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agomerge with xen-ia64-unstable.hg
kaf24@firebug.cl.cam.ac.uk [Wed, 22 Mar 2006 18:18:42 +0000 (19:18 +0100)]
merge with xen-ia64-unstable.hg

20 years agoParavirtualise the CPUID instruction by forcing emulation with an invalid-opcode...
kaf24@firebug.cl.cam.ac.uk [Wed, 22 Mar 2006 18:05:50 +0000 (19:05 +0100)]
Paravirtualise the CPUID instruction by forcing emulation with an invalid-opcode prefix.
This allows to clear feature flags and hide unsupported features from guests.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years ago[IA64] build xen_sysfs by default
awilliam@xenbuild.aw [Wed, 22 Mar 2006 17:04:43 +0000 (10:04 -0700)]
[IA64] build xen_sysfs by default

This works on xen/ia64 too, enable the code

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
20 years agomerge xen-unstable.hg
awilliam@xenbuild.aw [Wed, 22 Mar 2006 16:12:48 +0000 (09:12 -0700)]
merge xen-unstable.hg

20 years ago[IA64] Fixed VTI domain destruction
awilliam@xenbuild.aw [Wed, 22 Mar 2006 15:57:48 +0000 (08:57 -0700)]
[IA64] Fixed VTI domain destruction

This patch fixed the VTI domain destruction processing.
I tested creation/destruction domU. The "domU" which I tested is
VTI domain and non VTI domain. There was not the memory leak
issue, and VTI domain is not left in a zombie state.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
20 years ago[IA64] dom0_max_vcpus and dom0 vcpus creation
awilliam@xenbuild.aw [Wed, 22 Mar 2006 15:53:20 +0000 (08:53 -0700)]
[IA64] dom0_max_vcpus and dom0 vcpus creation

dom0_max_vcpus option added (default is 1).
Create dom0 vcpus.
Fix creations issue for SMP-g.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
20 years agoClean up netfront. Eliminate some macros in favour of inline functions.
kaf24@firebug.cl.cam.ac.uk [Wed, 22 Mar 2006 15:48:48 +0000 (16:48 +0100)]
Clean up netfront. Eliminate some macros in favour of inline functions.
Fix allocation of receive batching arrays (should be per interface).

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoExternally triggered reboot signal executes ctrl_alt_del()
kaf24@firebug.cl.cam.ac.uk [Wed, 22 Mar 2006 15:48:00 +0000 (16:48 +0100)]
Externally triggered reboot signal executes ctrl_alt_del()
rather than calling /sbin/reboot directly.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoReplace evtchn macro maze with static inline functions.
kaf24@firebug.cl.cam.ac.uk [Wed, 22 Mar 2006 15:47:18 +0000 (16:47 +0100)]
Replace evtchn macro maze with static inline functions.
Todo: could replace current irq_info packed format with a bitfield.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoA few cleanups based on comments from Arjan van de Ven.
kaf24@firebug.cl.cam.ac.uk [Wed, 22 Mar 2006 11:21:44 +0000 (12:21 +0100)]
A few cleanups based on comments from Arjan van de Ven.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoUse shiny new mutexes instead of semaphores where possible in our Linux code.
kaf24@firebug.cl.cam.ac.uk [Wed, 22 Mar 2006 10:55:43 +0000 (11:55 +0100)]
Use shiny new mutexes instead of semaphores where possible in our Linux code.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoLicensing clarifications in Linux source files:
kaf24@firebug.cl.cam.ac.uk [Wed, 22 Mar 2006 10:30:57 +0000 (11:30 +0100)]
Licensing clarifications in Linux source files:
 1. Make it clear in all dual-licensed files that the
    license when distributed with Linux is GPLv2.
 2. Add MODULE_LICENSE(dual) in a few places.
 3. Change many of our EXPORT_SYMBOL() decls to EXPORT_SYMBOL_GPL().
    This is the preference of the Linux maintainers, and avoids any
    trouble down the road if our EXPORT_SYMBOL'ed functions use Linux
    internal interfaces that are GPL only.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoOn x86/64 a domU kernel just sits around forever on a panic because
kaf24@firebug.cl.cam.ac.uk [Wed, 22 Mar 2006 09:38:44 +0000 (10:38 +0100)]
On x86/64 a domU kernel just sits around forever on a panic because
the HV doesn't know it crashed.  This patch sends the signal, which
allows the kernel to be cleaned up (according to whatever guest.conf
rules). It is basically copied and pasted from the i386 branch.

From: Don Zickus
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoSVM patch to enable SMI intercept.
kaf24@firebug.cl.cam.ac.uk [Wed, 22 Mar 2006 09:36:22 +0000 (10:36 +0100)]
SVM patch to enable SMI intercept.

Signed-off-by: Tom Woller <thomas.woller@amd.com>
20 years agoSVM patch to fix problem with evtchn/lost interrupts and re-enable hvm_safe_block().
kaf24@firebug.cl.cam.ac.uk [Wed, 22 Mar 2006 09:36:02 +0000 (10:36 +0100)]
SVM patch to fix problem with evtchn/lost interrupts and re-enable hvm_safe_block().

Signed-off-by: Tom Woller <thomas.woller@amd.com>
20 years agoSVM patch to fix problem with instruction decode.
kaf24@firebug.cl.cam.ac.uk [Wed, 22 Mar 2006 09:35:35 +0000 (10:35 +0100)]
SVM patch to fix problem with instruction decode.

Signed-off-by: Tom Woller <thomas.woller@amd.com>
20 years agoPrevent a stray error message in the case that either DISTDIR or
kaf24@firebug.cl.cam.ac.uk [Tue, 21 Mar 2006 21:57:47 +0000 (22:57 +0100)]
Prevent a stray error message in the case that either DISTDIR or
DESTDIR is empty, by preventing readlink from being called in that
case.

Another option would be to use readlink -s, but that has the
undesirable effect of staying silent in situations other than empty
DISTDIR/DESTDIR

Signed-off-by: Aron Griffis <aron@hp.com>
20 years agoClean up #include in init-xen.h.
kaf24@firebug.cl.cam.ac.uk [Tue, 21 Mar 2006 21:55:29 +0000 (22:55 +0100)]
Clean up #include in init-xen.h.

Signed-off-by: Muli Ben-Yehuda <mulix@mulix.org>
20 years agoThe following patch adds support to vmxassist for SYSLINUX/ISOLINUX. This
kaf24@firebug.cl.cam.ac.uk [Tue, 21 Mar 2006 21:50:48 +0000 (22:50 +0100)]
The following patch adds support to vmxassist for SYSLINUX/ISOLINUX. This
enables you to install SLES-10 as an unmodified guest.

Notice that at this time, vmxassist does not support the graphic bootstrap
loader (gfxboot), so be sure the set "stdvga=1" in your configuration file
to prevent gfxboot from kicking in (or hit SHIFT really fast).

Signed-Off-By: Leendert van Doorn <leendert@watson.ibm.com>
20 years agoFix a build problem when enabling XEN_SYSFS on xen/ia64.
kaf24@firebug.cl.cam.ac.uk [Tue, 21 Mar 2006 21:48:04 +0000 (22:48 +0100)]
Fix a build problem when enabling XEN_SYSFS on xen/ia64.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
20 years agomerge
awilliam@xenbuild.aw [Tue, 21 Mar 2006 18:19:11 +0000 (11:19 -0700)]
merge

20 years agoThe patch fixes a problem when testing for device /dev/tpm0. The API
emellor@leeni.uk.xensource.com [Tue, 21 Mar 2006 17:57:23 +0000 (18:57 +0100)]
The patch fixes a problem when testing for device /dev/tpm0. The API
call os.path.exists() must be called instead of os.path.isfile().

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
20 years ago[IA64] cleanup in domain.c
awilliam@xenbuild.aw [Tue, 21 Mar 2006 16:55:44 +0000 (09:55 -0700)]
[IA64] cleanup in domain.c

Remove unused code.
More static added.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
20 years ago[IA64] cleanup of tlb.c
awilliam@xenbuild.aw [Tue, 21 Mar 2006 16:55:04 +0000 (09:55 -0700)]
[IA64] cleanup of tlb.c

#if 0 unused code for tlb management.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
20 years ago[IA64] remove linux/patch.c
awilliam@xenbuild.aw [Tue, 21 Mar 2006 16:18:28 +0000 (09:18 -0700)]
[IA64] remove linux/patch.c

Removed, was unused.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
20 years ago[IA64] EFI_RESET_SYSTEM now reboots domU.
awilliam@xenbuild.aw [Tue, 21 Mar 2006 16:13:07 +0000 (09:13 -0700)]
[IA64] EFI_RESET_SYSTEM now reboots domU.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
20 years agoNanosecs not usecs in a time comment.
kaf24@firebug.cl.cam.ac.uk [Tue, 21 Mar 2006 14:40:54 +0000 (15:40 +0100)]
Nanosecs not usecs in a time comment.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years ago'permitted_clock_jitter' units are nanoseconds not microseconds.
kaf24@firebug.cl.cam.ac.uk [Tue, 21 Mar 2006 14:10:26 +0000 (15:10 +0100)]
'permitted_clock_jitter' units are nanoseconds not microseconds.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoRemove import of xen.lowlevel.xc, left over from when ballooning was done here
emellor@leeni.uk.xensource.com [Tue, 21 Mar 2006 11:45:59 +0000 (12:45 +0100)]
Remove import of xen.lowlevel.xc, left over from when ballooning was done here
(moved to the server in December).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoProtect cleanupDomain with the refresh_shutdown_lock. This stops the device
emellor@leeni.uk.xensource.com [Tue, 21 Mar 2006 11:41:33 +0000 (12:41 +0100)]
Protect cleanupDomain with the refresh_shutdown_lock.  This stops the device
and watch teardown being run concurrently from multiple threads, silencing
the No such file or directory error when tearing down the control/shutdown
watch, and reducing load on the store.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoMerged.
emellor@leeni.uk.xensource.com [Tue, 21 Mar 2006 11:26:38 +0000 (12:26 +0100)]
Merged.

20 years agoOnly send the OFFLINE hotplug event if be->netif is set. Firstly, this ensures
emellor@leeni.uk.xensource.com [Tue, 21 Mar 2006 11:25:23 +0000 (12:25 +0100)]
Only send the OFFLINE hotplug event if be->netif is set.  Firstly, this ensures
that OFFLINE is only sent if the ONLINE event has been sent.  Secondly, this
fixes one possible cause of the reopened bug #549 as it prevents be->netif
being dereferenced inside netback_uevent.  Early reports suggest that this is
not the only cause of #549, so that bug remains open for now.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoFix the implicit declaration of function `swiotlb_init' warning, by including
emellor@leeni.uk.xensource.com [Tue, 21 Mar 2006 11:21:08 +0000 (12:21 +0100)]
Fix the implicit declaration of function `swiotlb_init' warning, by including
the appropriate headers.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoCreates a module that exports Xen Hypervisor attributes to sysfs. The
kaf24@firebug.cl.cam.ac.uk [Tue, 21 Mar 2006 11:17:19 +0000 (12:17 +0100)]
Creates a module that exports Xen Hypervisor attributes to sysfs. The
module has a tri-state configuration so it can be a loadable module.

Views the hypervisor as hardware device, uses sysfs as  a scripting
interface for user space tools that need these attributes.

Some user space apps, particularly for systems management, need to
know if their kernel is running in a virtual machine and if so in
what type of virtual machine. This property is contained in the
file /sys/hypervisor/type.

The file hypervisor_sysfs.c creates a generic  hypervisor subsystem
that can be linked to by any hypervisor. The file xen_sysfs.c exports
the xen-specific attributes.

Signed-off-by: Mike D. Day <ncmike@us.ibm.com>
20 years agoIncrease timeout while waiting for console/tty node to appear in the store:
emellor@leeni.uk.xensource.com [Tue, 21 Mar 2006 10:56:11 +0000 (11:56 +0100)]
Increase timeout while waiting for console/tty node to appear in the store:
the intention appears to have been 500msec, but struct timeval when used with
a select() is in usec, not msec.  The timeout has been set to 250msec (500msec
seems a little long, in any case).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoBreak out common parts of vtpm tests into new vtpm_utils library.
emellor@leeni.uk.xensource.com [Tue, 21 Mar 2006 10:49:29 +0000 (11:49 +0100)]
Break out common parts of vtpm tests into new vtpm_utils library.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoMerged.
emellor@leeni.uk.xensource.com [Tue, 21 Mar 2006 10:44:56 +0000 (11:44 +0100)]
Merged.

20 years agoStop the domain at the end of the test.
emellor@leeni.uk.xensource.com [Tue, 21 Mar 2006 10:44:18 +0000 (11:44 +0100)]
Stop the domain at the end of the test.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoMerged.
kaf24@firebug.cl.cam.ac.uk [Tue, 21 Mar 2006 10:43:44 +0000 (11:43 +0100)]
Merged.

20 years agoSince we now have general rules to build ALL_OBJS, we don't need to manually
kaf24@firebug.cl.cam.ac.uk [Tue, 21 Mar 2006 10:42:39 +0000 (11:42 +0100)]
Since we now have general rules to build ALL_OBJS, we don't need to manually
build them. Compile-tested on x86 and PPC. Should work on IA64 too.

Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
20 years agoMerged.
emellor@leeni.uk.xensource.com [Tue, 21 Mar 2006 10:42:08 +0000 (11:42 +0100)]
Merged.

20 years agoAdd a.out files to mercurial ignore list.
kaf24@firebug.cl.cam.ac.uk [Tue, 21 Mar 2006 10:40:41 +0000 (11:40 +0100)]
Add a.out files to mercurial ignore list.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoAdded -u flag (unsafe) to runtest.sh, to skip the sanity checks. This improves
emellor@leeni.uk.xensource.com [Tue, 21 Mar 2006 10:39:09 +0000 (11:39 +0100)]
Added -u flag (unsafe) to runtest.sh, to skip the sanity checks.  This improves
turnaround when developing tests.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoUpdate xen/ia64 to use the new build system. Fixes the ia64 build.
kaf24@firebug.cl.cam.ac.uk [Tue, 21 Mar 2006 10:38:50 +0000 (11:38 +0100)]
Update xen/ia64 to use the new build system. Fixes the ia64 build.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
20 years agoFix a bug, and also fixes the build with some gcc4 versions.
kaf24@firebug.cl.cam.ac.uk [Tue, 21 Mar 2006 10:34:41 +0000 (11:34 +0100)]
Fix a bug, and also fixes the build with some gcc4 versions.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoThe current ptrace code is traversing the page table structures to
kaf24@firebug.cl.cam.ac.uk [Tue, 21 Mar 2006 10:29:17 +0000 (11:29 +0100)]
The current ptrace code is traversing the page table structures to
guest guest physical address, even when the guest paging is disabled.
The gdbserver-xen tries to access guest pdes & ptes to map memory of
hvm guest being debugged; and it gets a seg-fault because guest has not
setup it's paging yet. The attached patch adds guest paging state check,
so that the map_domain_va() can get the correct guest physical address
from guest va.

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
20 years agoNew SMP IPI interface function called on_selected_cpus(), currently implemented
kaf24@firebug.cl.cam.ac.uk [Tue, 21 Mar 2006 10:28:03 +0000 (11:28 +0100)]
New SMP IPI interface function called on_selected_cpus(), currently implemented
only for x86. The x86 implementation of smp_call_function has been simplified
and is now based on on_slected_cpus().

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoPut 03_vtpm-susp_res.py in its rightful place.
emellor@leeni.uk.xensource.com [Tue, 21 Mar 2006 08:53:00 +0000 (09:53 +0100)]
Put 03_vtpm-susp_res.py in its rightful place.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoTest suspend and resume cycles of the TPM front- and backend.
emellor@leeni.uk.xensource.com [Tue, 21 Mar 2006 00:28:29 +0000 (01:28 +0100)]
Test suspend and resume cycles of the TPM front- and backend.
Now that sysfs is mounted in the RAM disk of the test environment, the
test code does not need to do this anymore. This patch also simplifies
previous tests and the APIs used there. If prerequisites are not met
(vtpm manager not running) the patch will 'skip'.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
20 years agoAdd an option to xmtest to report results to an alternative results repository.
pl@us.ibm.com [Tue, 21 Mar 2006 00:19:24 +0000 (01:19 +0100)]
Add an option to xmtest to report results to an alternative results repository.
The default is preserved but can be overridden by either passing it with -r to runtest.sh or by setting the xmtest_repo environment variable.

Signed-off-by: Paul Larson <pl@us.ibm.com>
20 years agoMake sure the check to see if device is in use doesn't happen. We need
stekloff@elm3b49.beaverton.ibm.com [Tue, 21 Mar 2006 00:13:14 +0000 (01:13 +0100)]
Make sure the check to see if device is in use doesn't happen. We need
to share disk.imgs. Qemu doesn't honor the 'r' read-only value.

Signed-off-by: Daniel Stekloff <dsteklof@us.ibm.com>
20 years agoRemove obsolete startNow() method from XmTestDomain object.
stekloff@elm3b49.beaverton.ibm.com [Tue, 21 Mar 2006 00:11:18 +0000 (01:11 +0100)]
Remove obsolete startNow() method from XmTestDomain object.

Signed-off-by: Daniel Stekloff <dsteklof@us.ibm.com>
20 years agoAdd mounting /sys for 2.6 xm-test images.
stekloff@dyn9047022152.beaverton.ibm.com [Tue, 21 Mar 2006 00:10:46 +0000 (01:10 +0100)]
Add mounting /sys for 2.6 xm-test images.

Signed-off-by: Daniel Stekloff <dsteklof@us.ibm.com>